/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Abril_4.Ej_15_04_13_01;

import static Metodos.MetodosUtiles.*;
import java.io.File;
import java.util.Scanner;

/**
 *
 * @author vesprada
 */
public class nLineas {

    public static void main(String[] args) {
        File archivo = new File("lineas.txt");
        int cantLineas = pedirInt("cantidad de lineas a mostrar");
        try {
            Scanner lector = new Scanner(archivo);
            int C = 0;
            while (lector.hasNext() && C <= cantLineas) {
                System.out.print("LINEA "+(C+1)+": ");
                System.out.println(lector.nextLine());
                C++;
            }
        } catch (Exception e) {
        }

    }
}
